-- GENERATED SPELL FOR [Wrathtail Razortail] --


function spell0_3712(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3712', 20000, 1)
end

function spell1_3712(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(782,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3712', 562, 1)
end

function Sorts_3712(pUnit, Event)
local choix_sorts_3712 = math.random(0, 1)
if choix_sorts_3712 == 0 then
pUnit:RegisterEvent('spell0_3712', 1, 1)
end
if choix_sorts_3712 == 1 then
pUnit:RegisterEvent('spell1_3712', 1, 1)
end
end

function mob3712_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3712', math.random(1500, 3000), 1)
end

function mob3712_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3712_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3712_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3712, 1, 'mob3712_Action')
RegisterUnitEvent(3712, 2, 'mob3712_Leave')
RegisterUnitEvent(3712, 3, 'mob3712_Kill')
RegisterUnitEvent(3712, 4, 'mob3712_Die')
